package com.huhu.contact.model;

public class ContactBean {
    private String name;
    private String namepy;
    private String telephone;
    private String character;
    private int type;

    public enum ITEM_TYPE {
        ITEM_TYPE_CHARACTER,
        ITEM_TYPE_CONTACT
    }

    public ContactBean(String name, String phone) {
        this.name = name;
        this.telephone = phone;
    }

    public ContactBean(String character, int type) {
        this.character = character;
        this.type = type;
    }


    public ContactBean(String name, String phone, String character, int type) {
        this.name = name;
        this.telephone = phone;
        this.character = character;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getNamepy() {
        return namepy;
    }

    public void setNamepy(String namepy) {
        this.namepy = namepy;
    }

    public String getCharacter() {
        return character;
    }

    public void setCharacter(String character) {
        this.character = character;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isHeader() {
        return type == ITEM_TYPE.ITEM_TYPE_CHARACTER.ordinal();
    }
}
